<%@ page language="java" import="com.school.movie.common.utils.ContextUtils" pageEncoding="utf-8" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>影院在线售票系统</title>
    <jsp:include page="/IncludeJS.jsp"></jsp:include>
    <script type="text/javascript">
        function exit() {
            var msg = "【${userinfo.agent.agentName}】机构退出";
            if (confirm(msg)) {
                top.location.href = "exit.jsp";
            }
        }

        function loads() {
            //screen.width屏幕宽度
            //var leftwidth = document.getElementById("left").clientWidth;
            var clientWidth, clientHeight;
            clientHeight = document.body.clientHeight - 72;
            $("#tabs").tabs({
                height: clientHeight
            });
        }
    </script>

</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="loads();">
<div class="wrapper">
    <div class="header">
        <div class="topleft">
            <img src="images/login.jpg" title="影院在线售票管理系统" height="48px"/>
        </div>
        <div class="topright">
            <li><span><img src="images/Set.png"></span><a href="${pageContext.request.contextPath}/front/index/index"
                                                          target="_blank">前端首页</a></li>
            <li><span><img src="images/peo.png"></span><a
                    href="javascript:void(0)"><%=ContextUtils.getManagerInfo().getManagerName()%>
            </a></li>
            <li><span><img src="images/Set.png"></span><a href="javascript:void(0)"
                                                          onclick="addTab1('个人设定','${pageContext.request.contextPath}/mySet.jsp');">个人设定</a>
            </li>
            <li><span><img src="images/exit.png"></span><a href="javascript:void(0)" onclick="exit();">退出</a></li>
        </div>
    </div>
    <div class="left">
        <dl class="leftmenu">
            <%
                if (ContextUtils.getManagerInfo().getManagerType() == 3) {
            %>
            <dd>
                <div class="title">
                    <span>影院管理<i></i></span>
                </div>
                <ul class="menuson">
                    <li><cite></cite><a href="javascript:void(0)" onclick="addTab1('影院管理','agent/list');">影院管理</a></li>
                    <li><cite></cite><a href="javascript:void(0)" onclick="addTab1('账户管理','list');">账户管理</a></li>
                </ul>
            </dd>
            <dd>
                <div class="title">
                    <span>电影管理<i></i></span>
                </div>
                <ul class="menuson">
                    <li><cite></cite><a href="javascript:void(0)" onclick="addTab1('电影管理','movie/list');">电影管理</a></li>
                </ul>
            </dd>
            <dd>
                <div class="title">
                    <span>视频管理<i></i></span>
                </div>
                <ul class="menuson">
                    <li><cite></cite><a href="javascript:void(0)" onclick="addTab1('视频管理','video/list');">视频管理</a></li>
                </ul>
            </dd>
            <dd>
                <div class="title">
                    <span>演员管理<i></i></span>
                </div>
                <ul class="menuson">
                    <li><cite></cite><a href="javascript:void(0)" onclick="addTab1('演员管理','actor/list');">演员管理</a></li>
                </ul>
            </dd>
            <%
                }
            %>
            <dd>
                <div class="title">
                    <span>影厅管理<i></i></span>
                </div>

                <ul class="menuson">
                    <li><cite></cite><a href="javascript:void(0)" onclick="addTab1('影厅管理','movieHall/list');">影厅管理</a>
                    </li>
                </ul>
            </dd>
            <dd>
                <div class="title">
                    <span>排片管理<i></i></span>
                </div>
                <ul class="menuson">
                    <li><cite></cite><a href="javascript:void(0)" onclick="addTab1('排片管理','plan/list');">排片管理</a></li>
                </ul>
            </dd>
            <dd>
                <div class="title">
                    <span>报表管理<i></i></span>
                </div>
                <ul class="menuson">
                    <li><cite></cite><a href="javascript:void(0)" onclick="addTab1('票房收入报表','report/movieReport');">票房收入报表</a>
                    </li>
                    <li><cite></cite><a href="javascript:void(0)" onclick="addTab1('影院收入报表','report/agentReport');">影院收入报表</a>
                    </li>
                    <li><cite></cite><a href="javascript:void(0)" onclick="addTab1('影厅收入报表','report/hallReport');">影厅收入报表</a>
                    </li>
                </ul>
            </dd>
            <%
                if (ContextUtils.getManagerInfo().getManagerType() == 3) {
            %>
            <dd>
                <div class="title">
                    <span>用户管理<i></i></span>
                </div>
                <ul class="menuson">
                    <li><cite></cite><a href="javascript:void(0)" onclick="addTab1('用户管理','user/list');">用户管理</a></li>
                </ul>
            </dd>
            <dd>
                <div class="title">
                    <span>基础数据<i></i></span>
                </div>
                <ul class="menuson">
                    <li><cite></cite><a href="javascript:void(0)"
                                        onclick="addTab1('播放时段管理','playTime/list');">播放时段管理</a></li>
                    <li><cite></cite><a href="javascript:void(0)"
                                        onclick="addTab1('影厅类别管理','hallType/list');">影厅类别管理</a></li>
                    <li><cite></cite><a href="javascript:void(0)" onclick="addTab1('类型管理','movieType/list');">类型管理</a>
                    </li>
                    <li><cite></cite><a href="javascript:void(0)" onclick="addTab1('区域管理','area/list');">区域管理</a></li>
                    <li><cite></cite><a href="javascript:void(0)" onclick="addTab1('年代管理','year/list');">年代管理</a></li>
                </ul>
            </dd>
            <dd>
                <div class="title">
                    <span>系统日志<i></i></span>
                </div>
                <ul class="menuson">
                    <li><cite></cite><a href="javascript:void(0)" onclick="addTab1('系统日志','log/list');">系统日志</a></li>
                </ul>
            </dd>
            <%} %>
        </dl>
        <div class="dl-second-slib-con"><a class="dl-second-slib" href="javascript:"></a></div>
    </div>
    <div class="right">
        <div id="tabs" class="easyui-tabs" style="margin:0; width:auto;border:true;">
        </div>
    </div>
</div>

</body>
</html>

